
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="/static/bootstrapTable/bootstrap-table.min.css">

<div class="box">
	<div class="box-header with-border">
		<h3 class="box-title">机构管理</h3>

		<div class="box-tools pull-right">
			<button type="button" class="btn btn-box-tool" data-widget="collapse">
				<i class="fa fa-minus"></i>
			</button>
			<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
		</div>
	</div>
	<!-- /.box-header -->
	<div class="box-body" id="organization_table_id" style="">	

	</div>
	<!-- ./box-body -->
	<div class="box-footer" style="">
		<button class="btn btn-primary" id="add_organization_btn_id">新增</button>
		<button class="btn btn-warning" id="up_organization_btn_id">修改</button>
		<button class="btn btn-danger" id="del_organization_btn_id">删除</button>
	</div>
</div>

<div class="modal fade modalIndex" id="up_organization_Modal" role="dialog">
	<div class="modal-dialog" role="document">
		<div class="modal-content">
			<div class="modal-header">
				<h4 class="modal-title">修改机构</h4>
			</div>
			<div class="modal-body">
				<form class="form-horizontal" action="/upOrganization" id="up_organization_form_id" enctype="multipart/form-data" method="POST">
					<input type="hidden" id="up_organization_id" name="id">
					<div class="form-group">
						<label for="up_organization_name" class="col-sm-2 control-label">机构名称</label>

						<div class="col-sm-10">
							<input type="text" class="form-control" id="up_organization_name"
								name="name" placeholder="机构名称">
						</div>
					</div>
					
					<div class="form-group">
						<label for="up_organization_hot" class="col-sm-2 control-label">机构热度</label>

						<div class="col-sm-10">
							<input type="number" class="form-control" id="up_organization_hot"
								name="hot" placeholder="机构热度,整数">
						</div>
					</div>
					
					<div class="form-group">
						<label for="up_organization_province" class="col-sm-2 control-label">省份</label>

						<div class="col-sm-10">
							<select id="up_organization_province" name="province" class="form-control select2" style="width:80px">
							</select>
						</div>
					</div>
					
					<div class="form-group">
						<label for="up_organization_city" class="col-sm-2 control-label">城市</label>

						<div class="col-sm-10">
							<select id="up_organization_city" name="city" class="form-control select2" style="width:80px">
							</select>
						</div>
					</div>
					
					<div class="form-group">
						<label for="up_organization_part" class="col-sm-2 control-label">区/县</label>

						<div class="col-sm-10">
							<select id="up_organization_part" name="part" class="form-control select2" style="width:80px">
							</select>
						</div>
					</div>
					
					<div class="form-group">
						<label for="up_organization_phone" class="col-sm-2 control-label">联系电话</label>

						<div class="col-sm-10">
							<input type="number" class="form-control" id="up_organization_phone"
								name="phone" placeholder="官网联系电话">
						</div>
					</div>
					
					<div class="form-group">
						<label for="up_organization_email" class="col-sm-2 control-label">联系邮箱</label>

						<div class="col-sm-10">
							<input type="email" class="form-control" id="up_organization_email"
								name="email" placeholder="官网联系邮箱">
						</div>
					</div>
					
					<div class="form-group">
						<label for="up_organization_description" class="col-sm-2 control-label">简介</label>

						<div class="col-sm-10">
							<textarea id="up_organization_description" class="form-control" name="description" ></textarea>
						</div>
					</div>
					
					<div class="form-group">
						<label for="up_organization_address" class="col-sm-2 control-label">地址</label>

						<div class="col-sm-10">
							<input type="text" class="form-control" id="up_organization_address"
								name="address" placeholder="机构地址">
						</div>
					</div>
					
					<div class="form-group">
						<label for="up_organization_longitude" class="col-sm-2 control-label">经度</label>

						<div class="col-sm-10">
							<input type="text" class="form-control" id="up_organization_longitude"
								name="longitude" placeholder="机构定位经度">
						</div>
					</div>
					
					<div class="form-group">
						<label for="up_organization_latitude" class="col-sm-2 control-label">纬度</label>

						<div class="col-sm-10">
							<input type="text" class="form-control" id="up_organization_latitude"
								name="latitude" placeholder="机构定位纬度">
						</div>
					</div>
					
					<div class="form-group">
						<label for="up_organization_banner" class="col-sm-2 control-label">修改banner图片</label>

						<div class="col-sm-10">
							<input id="up_organization_banner" type="file" name="banner" accept="image/*">
						</div>
					</div>
					
					<div class="form-group">
						<label for="up_organization_logo" class="col-sm-2 control-label">修改logo图片</label>

						<div class="col-sm-10">
							<input id="up_organization_logo" type="file" name="logo" accept="image/*">
						</div>
					</div>
					
					<div class="form-group">
						<div class="col-sm-12">
							<button type="button" class="btn btn-info pull-right"
								id="up_organization_submit_btn_id">提交</button>
						</div>
					</div>
				</form>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
				</div>
			</div>
		</div>
	</div>
</div>

<div class="modal fade modalIndex" id="add_organization_Modal" role="dialog">
	<div class="modal-dialog" role="document">
		<div class="modal-content">
			<div class="modal-header">
				<h4 class="modal-title">添加机构</h4>
			</div>
			<div class="modal-body">
				<form class="form-horizontal" action="/addOrganization" id="add_organization_form_id" enctype="multipart/form-data" method="POST">
					<div class="form-group">
						<label for="add_organization_name" class="col-sm-2 control-label">机构名称</label>

						<div class="col-sm-10">
							<input type="text" class="form-control" id="add_organization_name"
								name="name" placeholder="机构名称">
						</div>
					</div>
					
					<div class="form-group">
						<label for="add_organization_province" class="col-sm-2 control-label">省份</label>

						<div class="col-sm-10">
							<select id="add_organization_province" name="province" class="form-control select2" style="width:80px">
							</select>
						</div>
					</div>
					
					<div class="form-group">
						<label for="add_organization_city" class="col-sm-2 control-label">城市</label>

						<div class="col-sm-10">
							<select id="add_organization_city" name="city" class="form-control select2" style="width:80px">
							</select>
						</div>
					</div>
					
					<div class="form-group">
						<label for="add_organization_part" class="col-sm-2 control-label">区/县</label>

						<div class="col-sm-10">
							<select id="add_organization_part" name="part" class="form-control select2" style="width:80px">
							</select>
						</div>
					</div>
					
					<div class="form-group">
						<label for="add_organization_phone" class="col-sm-2 control-label">联系电话</label>

						<div class="col-sm-10">
							<input type="number" class="form-control" id="add_organization_phone"
								name="phone" placeholder="官网联系电话">
						</div>
					</div>
					
					<div class="form-group">
						<label for="add_organization_email" class="col-sm-2 control-label">联系邮箱</label>

						<div class="col-sm-10">
							<input type="email" class="form-control" id="add_organization_email"
								name="email" placeholder="官网联系邮箱">
						</div>
					</div>
					
					<div class="form-group">
						<label for="add_organization_description" class="col-sm-2 control-label">简介</label>

						<div class="col-sm-10">
							<textarea id="add_organization_description" class="form-control" name="description" ></textarea>
						</div>
					</div>
					
					<div class="form-group">
						<label for="add_organization_address" class="col-sm-2 control-label">地址</label>

						<div class="col-sm-10">
							<input type="text" class="form-control" id="add_organization_address"
								name="address" placeholder="机构地址">
						</div>
					</div>
					
					<div class="form-group">
						<label for="add_organization_longitude" class="col-sm-2 control-label">经度</label>

						<div class="col-sm-10">
							<input type="text" class="form-control" id="add_organization_longitude"
								name="longitude" placeholder="机构定位经度">
						</div>
					</div>
					
					<div class="form-group">
						<label for="add_organization_latitude" class="col-sm-2 control-label">纬度</label>

						<div class="col-sm-10">
							<input type="text" class="form-control" id="add_organization_latitude"
								name="latitude" placeholder="机构定位纬度">
						</div>
					</div>
					
					<div class="form-group">
						<label for="add_organization_banner" class="col-sm-2 control-label">添加banner图片</label>

						<div class="col-sm-10">
							<input id="add_organization_banner" type="file" name="banner" accept="image/*">
						</div>
					</div>
					
					<div class="form-group">
						<label for="add_organization_logo" class="col-sm-2 control-label">添加logo图片</label>

						<div class="col-sm-10">
							<input id="add_organization_logo" type="file" name="logo" accept="image/*">
						</div>
					</div>
					
					<div class="form-group">
						<div class="col-sm-12">
							<button type="reset" class="btn btn-warning pull-left">重置</button>
							<button type="button" class="btn btn-info pull-right"
								id="add_organization_submit_btn_id">提交</button>
						</div>
					</div>
				</form>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
				</div>
			</div>
		</div>
	</div>
</div>


<!-- Latest compiled and minified JavaScript -->
<script src="/static/bootstrapTable/bootstrap-table.min.js"></script>
<script src="/static/bootstrapTable/locale/bootstrap-table-zh-CN.min.js"></script>
<script src="/static/organization.js"></script>
